import request from '@/utils/request'

// 查询设备数据列表
export function listEquipment_data(query) {
  return request({
    url: '/system/equipment_data/list',
    method: 'get',
    params: query
  })
}

// 查询设备数据详细
export function getEquipment_data(dataId) {
  return request({
    url: '/system/equipment_data/' + dataId,
    method: 'get'
  })
}
//充值功能
export function rechargeEquipment(data) {
  return request({
    url: '/system/equipment_data/recharge',
    method: 'post',
    data: data
  })
}
// 新增设备数据
export function addEquipment_data(data) {
  return request({
    url: '/system/equipment_data',
    method: 'post',
    data: data
  })
}

// 修改设备数据
export function updateEquipment_data(data) {
  return request({
    url: '/system/equipment_data',
    method: 'put',
    data: data
  })
}

// 删除设备数据
export function delEquipment_data(dataId) {
  return request({
    url: '/system/equipment_data/' + dataId,
    method: 'delete'
  })
}
